package com.qimo.zuoyeoa.entity;

import lombok.Data;

import java.sql.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class Message {
    private int id;
    private int receiverId;
    private int senderId;
    @NotBlank(message = "信息标题不能为空")
    @Size(max = 50, message = "信息标题不能超过20字")
    private String title;
    private String content;
    private Date sendTime;
    private String isRead;
}
